home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / VideoServices.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  3.9 KB  |  132 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        VideoServices.a
  3. ;
  4. ;    Contains:    Video Services Library Interfaces.
  5. ;
  6. ;    Version:    Technology:    PowerSurge 1.0.2
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__VIDEOSERVICES__') = 'UNDEFINED' THEN
  19. __VIDEOSERVICES__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
  25.     include 'NameRegistry.a'
  26.     ENDIF
  27.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  28.     include 'Quickdraw.a'
  29.     ENDIF
  30.  
  31. kTransparentEncoding            EQU        0
  32. kInvertingEncoding                EQU        1
  33.  
  34. kTransparentEncodingShift        EQU        $00
  35. kTransparentEncodedPixel        EQU        $01
  36. kInvertingEncodingShift            EQU        $02
  37. kInvertingEncodedPixel            EQU        $04
  38.  
  39. kHardwareCursorDescriptorMajorVersion EQU $0001
  40. kHardwareCursorDescriptorMinorVersion EQU $0000
  41. ; typedef UInt32 *                        UInt32Ptr
  42.  
  43. HardwareCursorDescriptorRec RECORD 0
  44. majorVersion             ds.w    1                ; offset: $0 (0)
  45. minorVersion             ds.w    1                ; offset: $2 (2)
  46. height                     ds.l    1                ; offset: $4 (4)
  47. width                     ds.l    1                ; offset: $8 (8)
  48. bitDepth                 ds.l    1                ; offset: $C (12)
  49. maskBitDepth             ds.l    1                ; offset: $10 (16)
  50. numColors                 ds.l    1                ; offset: $14 (20)
  51. colorEncodings             ds.l    1                ; offset: $18 (24)
  52. flags                     ds.l    1                ; offset: $1C (28)
  53. supportedSpecialEncodings  ds.l    1                ; offset: $20 (32)
  54. specialEncodings         ds.l    16                ; offset: $24 (36)
  55. sizeof                     EQU *                    ; size:   $64 (100)
  56.                         ENDR
  57. ; typedef struct HardwareCursorDescriptorRec * HardwareCursorDescriptorPtr
  58.  
  59.  
  60. kHardwareCursorInfoMajorVersion    EQU        $0001
  61. kHardwareCursorInfoMinorVersion    EQU        $0000
  62. HardwareCursorInfoRec    RECORD 0
  63. majorVersion             ds.w    1                ; offset: $0 (0)        ;  Test tool should check for kHardwareCursorInfoMajorVersion1
  64. minorVersion             ds.w    1                ; offset: $2 (2)        ;  Test tool should check for kHardwareCursorInfoMinorVersion1
  65. cursorHeight             ds.l    1                ; offset: $4 (4)
  66. cursorWidth                 ds.l    1                ; offset: $8 (8)
  67. colorMap                 ds.l    1                ; offset: $C (12)        ;  nil or big enough for hardware's max colors
  68. hardwareCursor             ds.l    1                ; offset: $10 (16)
  69. reserved                 ds.l    6                ; offset: $14 (20)        ;  Test tool should check for 0s
  70. sizeof                     EQU *                    ; size:   $2C (44)
  71.                         ENDR
  72. ; typedef struct HardwareCursorInfoRec * HardwareCursorInfoPtr
  73.  
  74.  
  75. kVBLInterruptServiceType        EQU        'vbl '
  76. kHBLInterruptServiceType        EQU        'hbl '
  77. kFrameInterruptServiceType        EQU        'fram'
  78. ; typedef ResType                         InterruptServiceType
  79.  
  80. ; typedef UInt32                         InterruptServiceIDType
  81.  
  82. ; typedef InterruptServiceIDType *        InterruptServiceIDPtr
  83.  
  84.     IF FOR_SYSTEM7_ONLY THEN
  85. ;
  86. ; extern OSErr VSLNewInterruptService(RegEntryID *serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID)
  87. ;
  88.     IF GENERATINGCFM THEN
  89.         IMPORT_CFM_FUNCTION VSLNewInterruptService
  90.     ENDIF
  91.  
  92.     ENDIF
  93.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  94. ;
  95. ; extern OSErr VSLNewInterruptService(RegEntryRef *serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID)
  96. ;
  97.     IF GENERATINGCFM THEN
  98.         IMPORT_CFM_FUNCTION VSLNewInterruptService
  99.     ENDIF
  100.  
  101. ;
  102. ; extern OSErr VSLWaitOnInterruptService(InterruptServiceIDType serviceID, Duration timeout)
  103. ;
  104.     IF GENERATINGCFM THEN
  105.         IMPORT_CFM_FUNCTION VSLWaitOnInterruptService
  106.     ENDIF
  107.  
  108.     ENDIF
  109. ;
  110. ; extern OSErr VSLDisposeInterruptService(InterruptServiceIDType serviceID)
  111. ;
  112.     IF GENERATINGCFM THEN
  113.         IMPORT_CFM_FUNCTION VSLDisposeInterruptService
  114.     ENDIF
  115.  
  116. ;
  117. ; extern OSErr VSLDoInterruptService(InterruptServiceIDType serviceID)
  118. ;
  119.     IF GENERATINGCFM THEN
  120.         IMPORT_CFM_FUNCTION VSLDoInterruptService
  121.     ENDIF
  122.  
  123. ;
  124. ; extern Boolean VSLPrepareCursorForHardwareCursor(void *cursorRef, HardwareCursorDescriptorPtr hardwareDescriptor, HardwareCursorInfoPtr hwCursorInfo)
  125. ;
  126.     IF GENERATINGCFM THEN
  127.         IMPORT_CFM_FUNCTION VSLPrepareCursorForHardwareCursor
  128.     ENDIF
  129.  
  130.     ENDIF ; __VIDEOSERVICES__ 
  131.  
  132.